<?php

namespace plugin\admin\app\model;

use plugin\admin\app\model\Base;

/**
 * @property integer $id (主键)
 * @property string $thumb 商品主图
 * @property string $name 商品名称
 * @property integer $model_id 模型ID
 * @property integer $brand_id 品牌ID
 * @property integer $goods_no 商品货号
 * @property integer $stock 商品库存
 * @property integer $is_up 是否上架
 * @property string $price 商品价格
 * @property integer $free_shipping 是否包邮
 * @property string $created_time 创建时间
 */
class Goods extends Base
{
    /**
     * The table associated with the model.
     *
     * @var string
     */
    protected $table = 'wa_goods';

    /**
     * The primary key associated with the table.
     *
     * @var string
     */
    protected $primaryKey = 'id';
    /**
     * Indicates if the model should be timestamped.
     *
     * @var bool
     */
    public $timestamps = false;

    const TYPE_SINGLE_SPEC = 1;

    const TYPE_MULTI_SPEC = 2;
    
}
